﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleSet.aspx.cs" Inherits="DQYT.HTDZ.Web.Views.SystemManage.RoleSet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>权限设置</title>
    <link href="../../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script src="../../js/changerows.js" type="text/javascript"></script>
    <script type="text/javascript">
        function CheckAll(form) {
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.name != 'chkall' && e.type == 'checkbox')
                    e.checked = form.chkall.checked;
            }
        }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" style="height: 25px">
                    <img src="../images/module.gif" width="20" alt="" /></td>
                <td style="width: 232px; height: 25px;">
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td width="80%" align="right" style="height: 25px">
                    [<font color="red">  <a href="javascript:location.href=document.referrer;" class="F_red"><font color="red">返回 </font></a></font>]</td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" 
            Width="99%" CssClass="gridview" RowStyle-HorizontalAlign="center" 
            EmptyDataText="没有数据" OnRowDataBound="GvData_RowDataBound" 
            PageSize="20">
            <Columns>
                <asp:BoundField DataField="MNU_ID" HeaderText="MNU_ID" />
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <asp:Label ID="lblXH" runat="server"></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Width="40px" />
                </asp:TemplateField>
                <asp:BoundField DataField="MNU_MC" HeaderText="模块名称">
                    <HeaderStyle Width="140px" />
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField HeaderText="节点" >
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="MNU_URL" HeaderText="模块地址">
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="权限">
                    <ItemTemplate>
                        <asp:CheckBox ID="ckFlag" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle HorizontalAlign="Center" />
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
            <PagerStyle HorizontalAlign="Center" />
        </asp:GridView>
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    &nbsp;</td>
                <td align="right">
                    <input type="checkbox" name="chkall" onclick="CheckAll(this.form)" value="on" /><font
                        color="#FF0000">全选</font>&nbsp;
                    <asp:Button ID="btnSave" runat="server" Text="保存权限" CssClass="submit" 
                        CausesValidation="False" OnClick="btnSave_Click" />&nbsp;</td>
            </tr>
        </table>
        <p>
            <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>&nbsp;
        </p>
    </form>
</body>
</html>

<script type="text/javascript" language="javascript">
    //senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
    senfe("gvData", "#ECF9FC", "#FFFFFF", "#D6F1F8");
</script>